package pc29;

import java.util.Scanner;
public class J09Retangle {
	public static void main(String[] args) {
		
		double width[] = new double[1];
		double height[] = new double[1];
		String color[] = new String[1];
		double getArea[] = new double[1];
		double getPerimeter[] = new double[1];
		
		Scanner sc = new Scanner(System.in);
		System.out.println("가로 세로 입력해볼래?");
		width[0] = sc.nextDouble();
		height[0] = sc.nextDouble();
		System.out.println("색깔 입력해볼래?");
		color[0] = sc.next();
		
		getArea(width, height, getArea);
		getPerimeter(width, height, getPerimeter);
		
		System.out.println("면적은 : "+getArea[0]);
		System.out.println("둘레는 : "+getPerimeter[0]);
		System.out.println("색깔은 : "+color[0]);
	}
	
	public static void getArea(double[] width, double[] height, double[] getArea){
		getArea[0] = width[0] * height[0];
	}
	public static void getPerimeter(double[] width, double[] height, double[] getPerimeter){
		getPerimeter[0] = (width[0] + height[0]) * 2;
	}

}
